<?php
	header('Expires: '.gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
	include "init.php";

	$request = "SELECT * FROM projects";
	$result = mysqli_query($con, $request);
	while ($row = mysqli_fetch_array($result)) {
		$result_array[] = $row;
	}
	
//	print_r($result_array);

	$smarty->assign('row', $result_array);
	$smarty->display('index.tpl');
?>